<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Consult extends Model{
	use HasDateTimeFormatter;
    use SoftDeletes;
    protected $table ='consult';

    public static function getTopList()
    {
        return self::where('status',1)->orderBy('read','desc')->get();
    }
}
